package com.xqboss.apps.dto.marketing;

import com.xqboss.apps.enums.user.UserWalletEnum;
import com.xqboss.apps.enums.user.WalletChangeDirectionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * <p>
 *     添加空投
 * </p>
 * @author Trent
 * @date 2023/9/1
 */
@Data
@ApiModel
public class WebAirdropMaterialDto {

    @ApiModelProperty(value = "空投原因", required = true)
    @NotNull(message = "请输入空投原因")
    private String reason;

    @ApiModelProperty(value = "空投用户列表", required = true)
    @NotNull(message = "请输入空投用户列表")
    @Size(min = 1, message = "至少空投给一个用户")
    @Size(max = 1000, message = "最多空投给1000个用户")
    private List<WebAirdropMaterialUserDto> userList;

    @ApiModelProperty(value = "空投类型",required = true)
    @NotNull(message = "请输入空投类型")
    private UserWalletEnum airdropType;

    @ApiModelProperty("空投方式(1-入 2-出)")
    @NotNull(message = "空投方式不能为空")
    private WalletChangeDirectionEnum direction;
}
